import request from "@/utils/request";

// 查询学员分页数据
export const queryStudentPageApi = (params) => request.get("/students", { params });

// 查询全部学员
export const queryStudentAllApi = () => request.get("/students/list");

// 新增学员
export const addStudentApi = (student) => request.post("/students", student);

// 根据ID查询学员
export const queryStudentByIdApi = (id) => request.get(`/students/${id}`);

// 修改学员
export const updateStudentApi = (student) => request.put("/students", student);

// 删除学员
export const deleteStudentApi = (id) => request.delete(`/students/${id}`); 